package com.sitech.portal.webHooks.service.impl;

import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.webHooks.dao.IWebHooksDao;
import com.sitech.portal.webHooks.domain.WebHooks;
import com.sitech.portal.webHooks.service.IWebHooksService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class WebHooksServiceImpl implements IWebHooksService {

	private IWebHooksDao webHooksDao;

    public void setWebHooksDao(IWebHooksDao webHooksDao) {
        this.webHooksDao = webHooksDao;
    }

    @Override
    public WebHooks selectWebHooksSync(String id) {
        return webHooksDao.selectWebHooks(id);  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public IPage selectWebHooksList(HashMap map, PageForm pageForm) {
        return webHooksDao.selectWebHooksList(map, pageForm);
    }

    @Override
    public int delWebHooks(ArrayList list) {
        return webHooksDao.delWebHooks(list);  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void addWebHooks(WebHooks orgInfoSync) {
        webHooksDao.addWebHooks(orgInfoSync);
    }

    @Override
    public List<WebHooks> selectWebHooksUrl(String kind) {
        return webHooksDao.selectWebHooksUrl(kind);  //To change body of implemented methods use File | Settings | File Templates.
    }
}
